home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.periphs.printers
- Subject: Re: rotating text for printing
- Date: 15 Mar 1996 20:53:53 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Distribution: inet
- Message-ID: <4idhh1INNpk0@keats.ugrad.cs.ubc.ca>
- References: <1996Mar15.225750.2705@ticipa.works.ti.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <1996Mar15.225750.2705@ticipa.works.ti.com>,
- Kevin Badinger <kbad@ticipa.works.ti.com> wrote:
- >Can anyone give me, or point me in the direction to finding information on
- >how to rotate text in C so I can print it in a landscape format for old epson
- >printers from dos. I know the newer printers will do all the landscape
- >formatting for you, but unfortunately I have to print to the old epsons.
-
- There is no easy way to do this in the C language. You have to write a program
- of moderate complexity.
-
- When I was a kid, I made a user interface program in BASIC that let the user
- create and upload his own EPSON fonts for the MX/FX series. The bit patterns
- were defined using special escape sequences sent to the printer.
-
- What you could do is define your own "sideways" character set, and then store
- an entire page of text in a big character array which you then print in the
- right traversal order so that the text reads properly sideways.
-
- These printers can be put into a graphics mode where instead of interpreting
- incoming characters as indices into a table of fonts, they interpret the data
- directly as a bit pattern to drive the pins of the print head. There are some
- restrictions. I think that you can't fire the same pin twice in adjacent
- columns, for instance---the same has to be observed in the font definition
- matrices.
-
- If you are adventurous, you could write a driver which would let you typeset
- arbitrary text into a buffer using all kinds of fonts of your own invention,
- and then print it as a bitmap. Or perhaps write something that causes a
- well-known bitmap file format to print. If you manage to thus convert a format
- that is generated by ghostscript, you may even end up being able to print
- PostScript stuff. Ha ha. That would be a neat hack, indeed.
-
- >Any information that you can provide will be of great assistance.
-
- If you have the reference manuals which tell you what the escape sequences
- are, you should be able to hack out something!
- --
-
-